import { fromJS } from 'immutable';

const defaultStore = fromJS({
  dataSource: [{
    key: '1',
    id: 1,
    userName: '赵雷',
    createTime: '2018-11-27 13:43:32'
  }, {
    key: '2',
    id: 2,
    userName: '周杰伦',
    createTime: '2018-11-25 17:23:12'
  }]
});

export default (store = defaultStore, action) => {
  switch(action.type) {
    default:
      return store;
  }
}